package com.zen.demo.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import org.springframework.boot.jackson.JsonComponent;

/**
 * @author alexzshl
 * @since 2022/1/29 0:39
 */
// @JsonComponent
public enum EnableEnum {
    ENABLE(0, "禁用"),
    DISABLE(1, "启用");

    @EnumValue
    private int code;

    @JsonValue
    private String value;

    EnableEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
}
